//
//  PageControllerFooterMore.m
//  XQPageControllerDemo
//
//  Created by Ticsmatic on 2017/7/21.
//  Copyright © 2017年 Ticsmatic. All rights reserved.
//

#import "YXLMallPageControllerFooterMore.h"
#import "YXLProduceListViewController.h"

@interface YXLMallPageControllerFooterMore ()
@property (nonatomic, strong) YXLProduceListViewController *vc1;
@property (nonatomic, strong) YXLProduceListViewController *vc2;
@property (nonatomic, strong) YXLProduceListViewController *vc3;
@property (nonatomic, strong) YXLProduceListViewController *vc4;
@end

@implementation YXLMallPageControllerFooterMore

- (void)viewDidLoad {
//    self.slideBarCustom = YES;
//    // 等宽
//    self.slideBar.isUnifyWidth = YES;
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

#pragma mark - ScrollPageViewControllerProtocol

- (NSArray *)arrayForControllerTitles {
    return @[@"品质生活", @"床上优选", @"限时兑换", @"猜你喜欢"];
}

- (UIViewController *)viewcontrollerWithIndex:(NSInteger)index {
    if (index <0 || index > self.arrayForControllerTitles.count) return nil;
    if (index == 0) {
        return self.vc1;
    } else if (index == 1) {
        return self.vc2;
    } else if (index == 2) {
        return self.vc3;
    }else if (index == 3) {
        return self.vc4;
    }
    return nil;
}

#pragma mark - Getter

- (YXLProduceListViewController *)vc1 {
    if (_vc1 == nil) {
        _vc1 = [YXLProduceListViewController new];
        _vc1.topHeight = SKNavBar_Height;
        //_vc1.testContent = @"分时页面";
    }
    return _vc1;
}

- (YXLProduceListViewController *)vc2 {
    if (_vc2 == nil) {
        _vc2 = [YXLProduceListViewController new];
        _vc2.topHeight = SKNavBar_Height;
        //_vc2.testContent = @"日K页面";
    }
    return _vc2;
}

- (YXLProduceListViewController *)vc3 {
    if (_vc3 == nil) {
        _vc3 = [YXLProduceListViewController new];
        _vc3.topHeight = SKNavBar_Height;
        //_vc3.testContent = @"周K页面";
    }
    return _vc3;
}
- (YXLProduceListViewController *)vc4 {
    if (_vc4 == nil) {
        _vc4 = [YXLProduceListViewController new];
        _vc4.topHeight = SKNavBar_Height;
        //_vc3.testContent = @"周K页面";
    }
    return _vc4;
}
@end
